#include "stdafx.h"
#include "Skill.h"

Skill::Skill()	{

}

Skill::Skill(int number_)
:number(number_)
{}

Skill::Skill(int number_, 
			CString name_, 
			short manacost_, 
			short range_, 
			short aera_, 
			short basePower_, 
			short specialEffect_, 
			short specialEffectPercent_, 
			short attackRating_
			//Sprite ImageEffect_, 
			//CBitmap icon_
			)	{
	this->number = number_;
	this->name = name_;
	this->manacost = manacost_;
	this->range = range_;
	this->aera = aera_;
	this->basePower = basePower_;
	this->specialEffect = specialEffect_;
	this->specialEffectPercent = specialEffectPercent_;
	this->attackRating = attackRating_;
	//this->icon = icon_;				
}

Skill::~Skill()	{

}

int Skill::GetNumber()	{
	return this->number;
}

Skill& Skill::operator=(const Skill &other)	{
	this->number = other.number;
	this->name = other.name;
	this->manacost = other.manacost;
	this->range = other.range;
	this->aera = other.aera;
	this->basePower = other.basePower;
	this->specialEffect = other.specialEffect;
	this->specialEffectPercent = other.specialEffectPercent;
	this->attackRating = other.attackRating;
	//this->icon = other.icon;
	return *this;
}

bool Skill::operator==(const Skill &other)	{
	bool ret = false;
	if(this->number == other.number)	{
		ret = true;
	}
	return ret;
}